import { GaRegExp, getRule } from '../rule';

const variableNameRule = getRule("variableNameRule");

const rule = new GaRegExp(["^(!", variableNameRule, ")$"]);

console.log(rule.RegExpList.origin);
console.log(rule.RegExpList.list);

console.log(rule.Test(`NAME_SYMBOL`)); // true
console.log(rule.Test(`sizeof`)); // true
console.log(rule.Test(`_sizeof_123`)); // true
console.log(rule.Test(`1_sizeof`)); // false

debugger;
